﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <div ng-app="" ng-init="firstName='John';lastName='Doe';person={firstName:'John',lastName:'Doe'};points=[1,15,19,2,40]">
        <p>姓名：{{firstName + " " + lastName}}</p>
        <p>姓名：<span ng-bind="firstName + ' ' + lastName"></span></p>
        <p>姓为{{person.lastName}}</p>
        <p>姓为<span ng-bind="person.lastName"></span></p>
        <p>第三个值为 <span ng-bind="points[2]"></span></p>

    </div>
    <script type="text/javascript" src="Scripts/angular.js"></script>
</body>
</html>